#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include<stdlib.h>

void compar(const void* a, const void* b)
{
	return (*(char*)a - *(char*)b);
}

int main()
{
    char arr[] = { 'a','b','e','c','f','d'};
	qsort(arr, 6, sizeof(char), compar);
	int i = 0;
	for (i = 0; i < 6; i++)
	{
		printf("%c ", arr[i]);
	}
	return 0;

}
